#include <sys/types.h>
#include <sys/param.h>

#include <netinet/in.h>
#include <arpa/inet.h>

#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

#include <WINGs/WINGs.h>

extern char *__progname;

int main(int, char *[]);
void usage(void);

int
main(int argc, char *argv[])
{
   if (argc <= 1)
      usage();
   else {
      /* Initialize this application */
      WMInitializeApplication(__progname, &argc, argv);

      /* Open display, returns NULL if cannot open display */
      Display *display = XOpenDisplay(NULL);
      if (display == NULL)
         err(1, "cannot open display");

      WMScreen *screen = WMCreateScreen(display, DefaultScreen(display));
      WNWindow *window = WMCreateWindow(screen, __progname);

